<?php
namespace app\index\controller;
use EasyWeChat\Factory;

class Index
{
    public function index()
    {
        
        $app = Factory::officialAccount(config('wechat.open_platform.default'));
        
        $response = $app->server->serve();
        $response->send(); // Laravel 里请使用：return $response;
    }
}